<div id="log_info">
  <%= render :layout => '/login/log_info' %>
</div>


<div align="center" >
  <img src="../../images/main.jpg" id="picture" />   <!--插入网站主页的大图-->
</div>

<div id="function">
  <table width="500" border="0">
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</div>


<div class="section">
  <div class="item">
    <h3>发表新帖</h3>
      <div class="description">
        <% form_for @topic,:url=>{ :controller=>"topics", :action=>"create" } do |f|  %>
          <div><p><%= f.error_messages %></p></div>
          标题：<p><%= f.text_field :title %></p>
          正文：<%= f.text_area :topic_content, :cols=>120, :rows=>8 %>
          <%= f.submit " 发表 " %>
        <% end  %>
      </div>
  </div>
</div>




<div id="footer">
</div>